
from selenium.webdriver.common.by import By
from selenium.webdriver.common.keys import Keys

class LoginPage(object):
	username = (By.ID,'')
	password = (By.ID,'')
	submit = (By.NAME, '')


	def set_username(self, username):
		name = self.driver.find_element(*LoginPage.username)
		name.send_keys(username)

	def set_password(self, password):
		password = self.driver.find_element(*LoginPage.password)
		password.send_keys(password + Keys.RETURN)

	# click sign in
	def click_SignIn(self, submit):
		okbtn = self.driver.find_element(*LoginPage.submit)
		okbtn.click()




